apiready = function () {
  api.parseTapmode();
  app.checkMerchantId();
  FastClick.attach(document.body);
  var header = $api.byId('aui-header');
  $api.fixStatusBar(header);
  $("#js-pay-submit").on("tap",function(){
    var order_amount=$(".js-amount-view").text();
    if(order_amount==""){
      return;
    }
    var body = $("#remark__textarea").val()?$("#remark__textarea").val():'';
    openFrame("FNScanner","./FNScanner.html",0,{type:'payScan',total_fee:order_amount,body:body});
  })
  var pageMoney= new Vue({
        el: '#pageMoneyInfo',
        data: {
        user_info:{}
        },
        created: function() {
          this.getUserInfo();
        },
         methods: {

              getUserInfo:function(){
              var that = this;
              app.get("api/user/info",{
                fields:'name,store.store_name'
              }, function (res) {
                if (res.code != 200) {
                  app.alert(res.msg);
                  return;
                }
                that.user_info = res.data;
              });
             }

         }

  })
}
